package com.zxw.common.entity.article;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * <p>
 * 文章信息表
 * </p>
 *
 * @author zhanxuewei
 * @since 2022-09-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "ArticleListQuery 显示对象", description = "文章信息表")
public class ArticleListQuery {

    @ApiModelProperty(value = "当前页")
    private Long current;

    @ApiModelProperty(value = "每页显示条数")
    private Long size;

    @ApiModelProperty(value = "文章id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "文章标题")
    private String title;

    @ApiModelProperty(value = "文章作者")
    private String author;

    @ApiModelProperty(value = "封面图片地址")
    private String cover;

    @ApiModelProperty(value = "文章简介")
    private String shortLine;

    @ApiModelProperty(value = "文章内容（富文本）")
    private String content;

    @ApiModelProperty(value = "文章分类")
    private String categoryId;

    @ApiModelProperty(value = "文章浏览数")
    private Integer countScan;

    @ApiModelProperty(value = "文章是否轮播")
    private Boolean isCarousel;

    @ApiModelProperty(value = "文章是否推荐")
    private Boolean isRecommend;

    @ApiModelProperty(value = "文章是否原创")
    private Boolean isOriginal;

    @ApiModelProperty(value = "是否置顶")
    private Boolean isTop;

    @ApiModelProperty(value = "文章标签")
    private String tagIds;

    @ApiModelProperty(value = "乐观锁")
    @Version
    private Long version;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "删除状态 : 1 未删除，0 已删除")
    @TableLogic
    private String status;

    @ApiModelProperty(value = "限制查询条数")
    private Integer limit;


}
